<?php

namespace Sisesporte\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="profissao")
 * @ORM\Entity(repositoryClass="Sisesporte\Repository\ProfissaoRepository")
 */
class Profissao {

    public function __construct($options = null) {
        if (!is_null($options))
            Configurator::configure($this, $options);
    }

    /**
     * @var $sqProfissao
     *
     * @ORM\Column(name="sq_profissao", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $sqProfissao;

    /**
     * @var string $noProfissao
     * @ORM\Column(name="no_profissao", type="text", nullable=false)
     */
    protected $noProfissao;

    /**
     * @var boolean $stAtivo
     * @ORM\Column(name="st_ativo", type="boolean", nullable=true)
     */
    protected $stAtivo;

    public function getSqProfissao() {
        return $this->sqProfissao;
    }

    public function getNoProfissao() {
        return $this->noProfissao;
    }

    public function setNoProfissao($noProfissao) {
        $this->noProfissao = $noProfissao;
        return $this;
    }

    public function getStAtivo() {
        return $this->stAtivo;
    }

    public function setStAtivo($stAtivo) {
        $this->stAtivo = $stAtivo;
        return $this;
    }

    public function __toString() {
        return $this->noProfissao;
    }

    public function toArray() {
        return array(
            'sqProfissao' => $this->getSqProfissao(),
            'noProfissao' => $this->getNoProfissao()
        );
    }

}
